import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

part 'article_tags.g.dart';

@JsonSerializable()
class ArticleTags extends Equatable {
  // @JsonKey(name: 'name')
  String name;

  // @JsonKey(name: 'url')
  String url;

  ArticleTags(
    this.name,
    this.url,
  );

  factory ArticleTags.fromJson(Map<String, dynamic> srcJson) =>
      _$ArticleTagsFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ArticleTagsToJson(this);

  @override
  List<Object?> get props => [name, url];
}
